.dropdown-toggle-caret-common() {
  display: inline-block;
  margin-left: 2px;
  position: absolute;
  top: @padding-base-vertical;
  right: @padding-base-horizontal;

  &::before {
    font-family: @dropdown-caret-font-family !important;
  }
}

.set-dropdown-caret(@prefix) {
  .@{prefix}-placement-left-bottom &::before,
  .@{prefix}-placement-left-top &::before {
    content: @drop-left-caret-content;
  }

  .@{prefix}-placement-right-bottom &::before,
  .@{prefix}-placement-right-top &::before {
    content: @drop-right-caret-content;
  }

  .@{prefix}-placement-top-left &::before,
  .@{prefix}-placement-top-right &::before {
    content: @dropup-caret-content;
  }

  .@{prefix}-placement-bottom-left &::before,
  .@{prefix}-placement-bottom-right &::before {
    content: @dropdown-caret-content;
  }
}

.dropdown-toggle() {
  position: relative;
  z-index: @zindex-dropdown;
  padding-right: @dropdown-toggle-padding-right;
  // Fixed: Content is not centered when customizing renderTitle.
  display: inline-block;
  // Clear white space.
  font-size: @font-size-base;
  // Rest `:focus` blue border.
  outline: none;
  cursor: pointer;

  // Custom title toggle need reset padding.
  &-custom-title {
    padding: 0 !important;
  }
}

// Horizontal dividers
//
// Dividers (basically an hr) within dropdowns and nav lists

.nav-divider(@color: #e5e5e5) {
  height: 1px;
  margin: @nav-divider-margin-vertical 0;
  overflow: hidden;
  background-color: @color;
}
